﻿using System.Text.RegularExpressions;

namespace Sissonix.ExtRest.WADL
{
    partial class resource
    {
        private string processingClass;

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string ProcessingClass
        {
            get
            {
                return this.processingClass;
            }
            set
            {
                this.processingClass = value;
            }
        }

        public string PathRegEx
        {
            get {return Regex.Replace(path, @"\{[^}]*\}", ".*");}
        }
    }
}
